/*
 * @Description: 
 * @Author: zoe
 * @Date: 2024-09-02 17:28:25
 * @LastEditors: rendc
 * @LastEditTime: 2024-09-02 17:45:18
 */

import java.util.Scanner;

public class Test04{
    public static void main(String[] args){
        
            Scanner scanner = new Scanner(System.in);
            System.out.println("请输入一个整数用于求:");
            int j = scanner.nextInt();
            int sum = 0;
            int i;
            for(i=0;i<=j;i++){
                 sum += i;
                if(i<j){
                    System.out.print(i+"+");
                }
            }
            System.out.println(j + "=" + sum);
            
    }
}

